export function coverPageColumn () {
  return [
    {
      title: '业务单元',
      key: 'buCode',
      render: (h, params) => {
        const item = this.$store.state.buList.filter(item => item.key === params.row.buCode)[0]
        return h(
          "span",
          item.value
        )
      }
    },
    {
      title: '填报周期',
      key: 'dcPeriod',
      minWidth: 120
    },
    {
      title: '目标',
      key: 'targetState',
      minWidth: 120
    },
    {
      title: '现状',
      key: 'currentState',
      minWidth: 120
    },
    {
      title: '目标更新时间',
      key: 'targetUpdateTime',
      minWidth: 180
    },
    {
      title: '现状更新时间',
      key: 'currentUpdateTime',
      minWidth: 180
    },
  ]
}

export const suggestPageColumn = () => {
  return [
    {
      title: '序号',
      width: 80,
      key: 'index',
      type: 'index'
    },
    {
      title: '节点名称',
      key: 'activityName', 
    },
    {
      title: '执行人',
      key: 'createUserName', 
    },
    {
      title: '处理日期',
      key: 'createDate', 
    },
    {
      title: '操作',
      key: 'actionName', 
    },
    {
      title: '审批意见',
      key: 'msg', 
    },
  ]
}